home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmSetProtocolHooks.z
/
XmSetProtocolHooks
Wrap
Text File
|
1998-10-30
|
5KB
|
133 lines
XXXXmmmmSSSSeeeettttPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeettttPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmSSSSeeeettttPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss - A VendorShell function that allows
preactions and postactions to be executed when a protocol
message is received from MWM
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/Xm.h>
#include <Xm/Protocols.h>
vvvvooooiiiidddd XXXXmmmmSSSSeeeettttPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss(
WWWWiiiiddddggggeeeetttt sssshhhheeeellllllll,
AAAAttttoooommmm pppprrrrooooppppeeeerrrrttttyyyy,
AAAAttttoooommmm pppprrrroooottttooooccccoooollll,
XXXXttttCCCCaaaallllllllbbbbaaaacccckkkkPPPPrrrroooocccc pppprrrreeeehhhhooooooookkkk,
XXXXttttPPPPooooiiiinnnntttteeeerrrr pppprrrreeee____cccclllloooossssuuuurrrreeee,
XXXXttttCCCCaaaallllllllbbbbaaaacccckkkkPPPPrrrroooocccc ppppoooosssstttthhhhooooooookkkk,
XXXXttttPPPPooooiiiinnnntttteeeerrrr ppppoooosssstttt____cccclllloooossssuuuurrrreeee);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmSSSSeeeettttPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss is used by shells that want to have
preactions and postactions executed when a protocol message
is received from MWM. Since there is no guaranteed ordering
in execution of event handlers or callback lists, this
allows the shell to control the flow while leaving the
protocol manager structures opaque.
XXXXmmmmSSSSeeeettttWWWWMMMMPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss is a convenience interface. It calls
XXXXmmmmSSSSeeeettttPPPPrrrroooottttooooccccoooollllHHHHooooooookkkksssswith the property value set to the atom
returned by interning WWWWMMMM____PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLLSSSS.
_s_h_e_l_l Specifies the widget with which the protocol
property is associated
_p_r_o_p_e_r_t_y Specifies the protocol property
_p_r_o_t_o_c_o_l Specifies the protocol atom
_p_r_e_h_o_o_k Specifies the procedure to call before calling
entries on the client callback list
_p_r_e__c_l_o_s_u_r_e
Specifies the client data to be passed to the
prehook when it is invoked
_p_o_s_t_h_o_o_k Specifies the procedure to call after calling
entries on the client callback list
_p_o_s_t__c_l_o_s_u_r_e
Specifies the client data to be passed to the
posthook when it is invoked
Page 1 (printed 10/24/98)
XXXXmmmmSSSSeeeettttPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeettttPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss((((3333XXXX))))
For a complete definition of VendorShell and its associated
resources, see VVVVeeeennnnddddoooorrrrSSSShhhheeeellllllll(3).
RRRREEEELLLLAAAATTTTEEEEDDDD
VVVVeeeennnnddddoooorrrrSSSShhhheeeellllllll(3), XXXXmmmmIIIInnnntttteeeerrrrnnnnAAAAttttoooommmm(3), and
XXXXmmmmSSSSeeeettttWWWWMMMMPPPPrrrroooottttooooccccoooollllHHHHooooooookkkkssss(3).
Page 2 (printed 10/24/98)